import request from '@/utils/request'

// 查询采购计划信息列表
export function listPurchasePlan(query) {
  return request({
    url: '/purchase/purchasePlan/list',
    method: 'post',
    data: query
  })
}

// 查询采购计划信息详细
export function getPurchasePlan(id) {
  return request({
    url: '/purchase/purchasePlan/' + id,
    method: 'get'
  })
}

// 删除采购计划信息
export function delPurchasePlan(id) {
  return request({
    url: '/purchase/purchasePlan/delete/' + id,
    method: 'post'
  })
}

// 新增采购计划信息
export function addPurchasePlan(data) {
  return request({
    url: '/purchase/purchasePlan/add',
    method: 'post',
    data: data
  })
}

// 修改采购计划信息
export function updatePurchasePlan(data) {
  return request({
    url: '/purchase/purchasePlan/update',
    method: 'post',
    data: data
  })
}
//审核接口
export function auditPurchasePlan(data){
  return request({
    url: '/purchase/purchasePlan/audit/',
    method: 'post',
    data:data
  })
}

//审核前置查询

export function auditInquire(id){
  return request({
    url: `/purchase/purchasePlan/repeat/${id}`,
    method: 'get'
  })
}
//审核接口
// export function audit(id){
//   return request({
//     url: `/purchase/purchasePlan/repeat/${id}`,
//     method: 'get'
//   })
// }
